<div id="left_side">
	<!--Hilight-->
	<?php if(!empty($dataMovieHilight)):?>
		<div id="movie_hilight">
			<div class="cycleElementsContainer" id="slider">
				<div class="slider">
				<ul>
					<?php foreach($dataMovieHilight as $key => $value):?>
					<li>
						<?php echo $value;?>
					</li>				
					<?php endforeach;?>
				</ul>
				</div>
			</div>
			<div class="navigation">
				<?php foreach($dataMovieHilight as $key => $value):?>
					<a href="#" class="cycleToPoint1 cycleToPoint red <?php echo ($key==0 ? 'active':'');?>" data-position="<?php echo intval($key+1);?>"></a> 
				<?php endforeach;?>
			</div>			
		</div>
	<?php endif;?>
	<div id="movie_menu">
		<ul class="selectOption">
			<li class="click">เลือกประเภท</li>
			<li <?php if($this->uri->segment(1) == "showing") echo "class='click'";?>>
				<a href="<?php echo $movie_url.'showing';?>" title="หนังใหม่ชนโรง">หนังใหม่ชนโรง</a>
			</li>
			<li <?php if($this->uri->segment(1) == "coming_soon") echo "class='click'";?>>
				<a href="<?php echo $movie_url.'coming_soon';?>" title="โปรแกรมหน้า">โปรแกรมหน้า</a>
			</li>
			<li <?php if($this->uri->segment(1) == "hit") echo "class='click'";?>>
				<a href="<?php echo $movie_url.'hit';?>" title="หนังฮิตในรอบสัปดาห์">หนังฮิตในรอบสัปดาห์</a>
			</li>
			<li <?php if($this->uri->segment(1) == "clip") echo "class='click'";?>>
				<a href="<?php echo $movie_url.'clip';?>" title="คลิปวีดีโอ">คลิปวีดีโอ</a>
			</li>
			<li <?php if($this->uri->segment(1) == "music") echo "class='click'";?>>
				<a href="<?php echo $movie_url.'music';?>" title="เพลงประกอบภาพยนตร์">เพลงประกอบภาพยนตร์</a>
			</li>
			<li <?php if($this->uri->segment(1) == "news") echo "class='click'";?>>
				<a href="<?php echo $movie_url.'news';?>" title="ข่าววงการภาพยนตร์">ข่าววงการภาพยนตร์</a>
			</li>
		</ul>
			<?php echo image_asset('movie/down.png','',array('class' => "arrowDown",'alt' => "เลือกประเภท", 'title' => "เลือกประเภท"));?>
	</div>
	<div id="movie_showing">
		<div class="headCat">
			<h2 class="titleH2">หนังใหม่ชนโรง</h2>
			<a href="<?php echo $movie_url.'showing';?>">หนังชนโรงทั้งหมด »</a>
		</div>
		<div class="bodyContent">
		<?php if(!empty($movieShowing)) foreach($movieShowing as $value):?>
			<div itemscope itemtype="http://schema.org/Movie" class="movieItem">
				<a href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
				<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'movie',
							'dimension' => '120x173',
							'file_name' => @$value->movie_file_name.'.'.@$value->movie_file_ext,
							'alt' => ''.@$value->movie_name.'',	
							'title' => ''.@$value->movie_name.''	
							)
						);?>
				</div>
				<div itemprop="name" class="title"><?php echo $value->movie_name;?></div>
				</a>
				<div class="date">
				<?php echo "ฉาย <span itemprop=\"datePublished\" content=\"".$value->movie_publish_date."\">".convertDatetimeToThai($value->movie_publish_date)."</span>";?>
				</div>
				<div class="view">
				<?php echo "จำนวนที่ดู ".$value->views." ครั้ง";?>
				</div>
			</div>
		<?php endforeach;?>
			<div class="clearfix"></div>
		</div>
	</div>
	<div id="movie_clip_hit">
		<div class="videoClip">
			<div class="catTitle">
				<h2>คลิปวีดีโอเกี่ยวกับหนัง</h2>
			</div>
			<div class="bodyContent">
			<?php if(!empty($movieClip)):
				foreach($movieClip as $value):?>
			<div class="movieItem">
				<a href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
				<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'movie',
							'dimension' => '127x82',
							'file_name' => @$value->movie_file_name.'.'.@$value->movie_file_ext,
							'alt' => ''.@$value->movie_name.'',	
							'title' => ''.@$value->movie_name.''	
								)
						);?>
				</div>
				</a>
				<div class="title">
				<div class="short">
				<a href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
					<?php echo $value->movie_name;?>
				</a>
				</div>
				<div class="date">
				<?php echo "เมื่อ ".convertDatetimeToThai(date('Y-m-d',strtotime($value->create_date)));?>
				</div>				
				<div class="view">
				<?php echo "จำนวนที่ดู ".$value->views." ครั้ง";?>
				</div>
				</div>
			</div>
		<?php 	endforeach;
			endif;?>
			<div class="clearfix"></div>
			</div>
			<div class="seeAll">
				<a href="<?php echo $movie_url.'clip';?>">ดูทั้งหมด&nbsp;&raquo;</a>
			</div>
		</div>
		<div class="movieHit">
			<div class="catTitle">
				<h2>ตัวอย่างหนังฮิตในรอบสัปดาห์</h2>
			</div>
			<div class="bodyContent">
			<?php if(!empty($movieHit)) foreach($movieHit as $value):?>
			<div itemscope itemtype="http://schema.org/Movie" class="movieItem">
				<a href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
				<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'movie',
							'dimension' => '120x173',
							'file_name' => @$value->movie_file_name.'.'.@$value->movie_file_ext,
							'alt' => ''.@$value->movie_name.'',	
							'title' => ''.@$value->movie_name.''
							)
						);?>
				</div>
				<div itemprop="name" class="title"><?php echo $value->movie_name;?></div>
				</a>
				<div class="date">
				<?php echo "ฉาย <span itemprop=\"datePublished\" content=\"".$value->movie_publish_date."\">".convertDatetimeToThai($value->movie_publish_date)."</span>";?>
				</div>
				<div class="view">
				<?php echo "จำนวนที่ดู ".$value->views." ครั้ง";?>
				</div>
			</div>
		<?php endforeach;?>
			<div class="clearfix"></div>
			</div>
			<div class="seeAll">
				<a href="<?php echo $movie_url.'hit';?>">ดูทั้งหมด&nbsp;&raquo;</a>
			</div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div id="movie_coming">
		<div class="comTitle">
			<h2>ตัวอย่างหนังโปรแกรมหน้า</h2>
			<a href="<?php echo $movie_url.'coming_soon';?>">หนังโปรแกรมหน้าทั้งหมด »</a>
		</div>
		<div class="bodyContent">
		<?php if(!empty($movieComingSoon)):
				foreach($movieComingSoon as $value):?>
			<div itemscope itemtype="http://schema.org/Movie" class="movieItem">
				<a href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
				<div class="thumb">
						<?php echo exec_image(array(
							'folder' => 'movie',
							'dimension' => '120x173',
							'file_name' => @$value->movie_file_name.'.'.@$value->movie_file_ext,
							'alt' => ''.@$value->movie_name.'',	
							'title' => ''.@$value->movie_name.''	
							)
						);?>
				</div>
				<div itemprop="name" class="title"><?php echo $value->movie_name;?></div>
				</a>
				<div class="date">
				<?php echo "ฉาย <span itemprop=\"datePublished\" content=\"".$value->movie_publish_date."\">".convertDatetimeToThai($value->movie_publish_date)."</span>";?>
				</div>
				<div class="view">
				<?php echo "จำนวนที่ดู ".$value->views." ครั้ง";?>
				</div>
			</div>
		<?php 	endforeach;
			endif;?>
			<div class="clearfix"></div>
		</div>
	</div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module))
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach;?>
</div>
<div class="clear"></div>
<script type="text/javascript" language="javascript">
(function($) {
/*whatever jQuery stuff*/
	$(function(){
		//multipleElementsCycle
		$("#slider").multipleElementsCycle({
			scrollCount: 1,
			start: 0,
			jumpTo: '.cycleToPoint1',
			auto: true
		});												
	});	
})(jQuery);
</script>